package cn.hfatec.shms.system.user.model;


import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
public class User {

    //
    private Integer id;
    //登录名称
    @NotBlank(message = "登录名称不能为空")
    private String loginName;
    //用户名称
    @NotBlank(message = "用户名称不能为空")
    private String userName;
    //密码
    private String password;
    //性别
    @NotNull(message = "登性别不能为空")
    private Integer sex;
    //所属机构ID
    @NotBlank(message = "所属机构不能为空")
    private String orgId;
    //用户状态
    @NotNull(message = "用户状态不能为空")
    private Integer status;
    //用户类型
    @NotNull(message = "用户类型不能为空")
    private Integer userType;
    //排序号
    private Integer sortNo;
    //备注
    private String remark;

    //邮箱地址
    private String email;

    public Integer getId() {
        return this.id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getLoginName() {
        return this.loginName;
    }
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }
    public String getUserName() {
        return this.userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getSex() {
        return this.sex;
    }
    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public String getOrgId() {
        return this.orgId;
    }
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    public Integer getStatus() {
        return this.status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getUserType() {
        return this.userType;
    }
    public void setUserType(Integer userType) {
        this.userType = userType;
    }
    public Integer getSortNo() {
        return this.sortNo;
    }
    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}